/**
 * @file transport 接口实现
 * @author eabax-FE
 */
import request from '@/utils/request'
const prefix = '/cecapitalexpend' // 这里需要修改为微服务网关的前缀

/**
 * @name 增加
 * @description 增加
 * @param body  transport
 * @return
 */
export function addFn(transport) {
  return request({
    url: `${prefix}/transport`,
    method: 'post',
    data: transport
  })
}
/**
 * @name 根据条件查询
 * @description 根据条件查询
 * @param body  transport
 * @return
 */
export function findSearchFn(data) {
  return request({
    url: `${prefix}/transport/search`,
    method: 'post',
    data
  })
}
/**
 * @name 分页+多条件查询
 * @description 分页+多条件查询
 * @param body  transport
 * @param path integer page
 * @param path integer size
 * @return
 */
export function findSearchPageFn(transport, page, size) {
  return request({
    url: `${prefix}/transport/search/${page}/${size}`,
    method: 'post',
    data: transport
  })
}
/**
 * @name 停启用
 * @description 停启用
 * @param body  transport
 * @return
 */
export function updateBlnisinactiveFn(transport) {
  return request({
    url: `${prefix}/transport/updateBlnisinactive`,
    method: 'post',
    data: transport
  })
}
/**
 * @name 根据ID查询
 * @description 根据ID查询
 * @param path integer id
 * @return
 */
export function findByIdFn(id) {
  return request({
    url: `${prefix}/transport/${id}`,
    method: 'get'
  })
}
/**
 * @name 修改
 * @description 修改
 * @param body  transport
 * @param path integer id
 * @return
 */
export function updateFn(transport, id) {
  return request({
    url: `${prefix}/transport/${id}`,
    method: 'put',
    data: transport
  })
}
/**
 * @name 删除
 * @description 删除
 * @param path integer id
 * @return
 */
export function deleteFn(id) {
  return request({
    url: `${prefix}/transport/${id}`,
    method: 'delete'
  })
}
